/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const systemRouter = {
  path: '/system',
  component: Layout,
  redirect: '/system/account',
  name: 'System',
  alwaysShow: true,
  meta: {
    roles:['prize_system_manage','admin'],
    title: '系统管理',
    icon: 'el-icon-setting'
  },
  children: [
    {
      name: 'Account',
      path: 'account',
      roles:['prize_account_manage','admin'],
      component: () => import('@/views/system/account/account.vue'),
      meta: {
        roles:['prize_account_manage','admin'],
        title: '账号管理',
        icon: 'yuan-red'
      }
    },
    {
      name: 'Role',
      path: 'role',
      component: () => import('@/views/system/role/role.vue'),
      meta: {
        roles:['prize_role_manage','admin'],
        title: '角色管理',
        icon: 'yuan-orange'
      }
    }
  ]
}
export default systemRouter
